package polymorphic2;

import lombok.Getter;
import lombok.Setter;

/**
 * @classname:PE
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/2 17:18
 * @version: 0.1
 * @since:1.8
 */
@Setter
@Getter
public class PM extends Employee {
    private int exp;
    private double bonus;

    public PM() {
    }

    public PM(int id, String name, String gender, double salary,int exp,double bonus) {
        super(id, name, gender, salary);
        this.bonus = bonus;
        this.exp  = exp;
    }

    public int getExp() {
        return exp;
    }

    public void setExp(int exp) {
        this.exp = exp;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }
}
